package com.block.test.service.record;

import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;
import com.block.common.model.dto.ReqRecordDTO;
import com.block.common.enums.ApiReqEnum;
import com.block.test.service.IReqRecordService;
import org.springframework.stereotype.Service;

/**
 * 产品列表统计
 * （不统计弹窗）
 *
 */
@Service
public class ProdListRecordService implements IReqRecordService {

    @Override
    public ReqRecordDTO handleReqInfo(JSONObject transData) {

        Integer sceneId = transData.getInteger("sceneId");
        if (ObjectUtil.equal(sceneId, Integer.valueOf(3))){
            return null;
        }

        ReqRecordDTO reqRecordDTO = new ReqRecordDTO();
        reqRecordDTO.setUriType(ApiReqEnum.PROD_LIST.getType());

        return reqRecordDTO;
    }
}
